package vsm.vsm_server.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface RecMapper {
    @Select("SELECT videoId FROM video as t1 WHERE t1.videoId>=(RAND()*(SELECT MAX(videoId) FROM video)) LIMIT #{videocount}")
    List<BigInteger> getRandomVideoList(Integer videocount);
}
